function userLists() {
	ajaxT();
}
function ajaxT() {
	$.ajax({
		type : "get",
		dataType : "json",
		url : "http://localhost/GreenLife/user.do",
		success : function(data) {
			createShowingTable(data.dataList);
		}
	});
}
// 动态的创建一个table
function createShowingTable(data) {
	var tableStr = "";
	/*tableStr = tableStr
			+ "<thread>"
			+ "<th>标识</th>"
			+ "<th>登陆账号</th>"
			+ "<th>手机号码</th>"
			+ "<th>邮箱</th>"
			+ "<th>角色ID</th>"
			+ "</tr>"
			+ "</thread>"
			+ "<tbody>";*/
	var len = data.length;
	for (var i = 0; i < len; i++) {
		tableStr = tableStr
				+ "<tr class='gradeX'>"
				+ "<td>"
				+ (i + 1)
				+ "</td>"
				+ "<td>"+data[i].phoneNumber+"</td>"
				+ "<td>"+data[i].phoneNumber+"</td>"
				+ "<td class='center'>"+data[i].email+"</td>"
				+ "<td class='center'>"+data[i].roleId+"</td>"
				+ "</tr>";
	}
	if (len == 0) {
		tableStr = tableStr + "<tr style='text-align: center'>"
				+ "<td colspan='6'><font color='#cd0a0a'>" + 暂无记录
				+ "</font></td>" + "</tr>";
	}
	tableStr = tableStr;
	// 添加到div中
	$("tbody.testasdfas").html(tableStr);
}
